package com.example.smart.ui.activity.guide

import com.example.lib.extend.setOnDoubleClickListener
import com.example.lib.utils.sp.SpKey
import com.example.lib.utils.sp.SpUtils
import com.example.lib.utils.statusbar.StatusBarUtils
import com.example.smart.R
import com.example.smart.base.ui.activity.BaseActivity
import com.example.smart.databinding.ActivityGuideThirdBinding
import com.example.smart.utils.DisplayUtils


class GuideThirdActivity : BaseActivity<ActivityGuideThirdBinding>() {

    override fun layoutID() = R.layout.activity_guide_third

    override fun initView() {
        StatusBarUtils.setStateAndNavigationBar(this@GuideThirdActivity,
            statusBarColor = com.example.lib.R.color.translate)
    }

    override fun initListener() {
        binding.Go.setOnDoubleClickListener {
            SpUtils.putBoolean(SpKey.READ_GUIDE, true)
            DisplayUtils.toWelcome(this@GuideThirdActivity)
        }
    }
}